<script type="text/javascript">
<!--
	function delphoto(id)
	{
    	if (confirm('{$lang.Confirmer_suppression_photo} ?'))
	    {
	           document.location.href = 'annonce_image_ajout.php?delete&token={$token}&id={$Annonce.id}&photo_id='+id;
        }
	}
// -->
</script>

<h3>{$lang.Gestion_photo_annonce} : {$Annonce.titre}</h3>
<br /><br />

{if $error_msg == true}
<span id="errorh"></span>
<div id="error_msg">
	<div class="{$error_class}" style="width:500px;margin:auto;padding:15px;">
		<img src="{$url_site}images/{$error_image}.png" alt="" style="float:left;padding-right:6px;" /> {$error_message}
	</div>
	<br />
</div>
<script type="text/javascript">
<!--
	//Javascript timeout to hide this message
	setTimeout('Effect.Fade("error_msg");', 3000);
-->
</script>
<br /><br />
{/if}

<table class="tcenter" style="border: 1px #ffffff solid; border-collapse: collapse;" cellpadding="2" cellspacing="2">
	{$tab_photo}
</table>
<br />
<br />
<div class="center">
	<form method="post" action="annonce_image_ajout.php" enctype="multipart/form-data">
	<fieldset style="width: 610px; margin:auto;"><legend>{$lang.Ajouter_une_photo}</legend>
	<br />
	<br />
	<label>{$lang.Photo} : </label><input type="file" name="photo" /><br /><br />
    <input type="checkbox" name="resize" checked="checked" />&nbsp;{$lang.Redimensionner}
    <br /><br />
	<input type="hidden" name="id" value="{$Annonce.id}" />
	<input type="submit" name="send_photo" value="{$lang.Enregistrer}" />
	<br />	
	</fieldset>
	</form>
</div>
<br />
<br />